package com.fun;

import java.util.List;

import org.junit.Test;

public class TestDAO {
@Test
public void testProductsave(){
	ProductDAO dao=new ProductDAO();
	Cups b=new Cups();
	b.setName("test");
	b.setSize("abcdksf");
	dao.productsave(b);
}
@Test
public void testfind(){

ProductDAO dao=new ProductDAO();
List<Product> list=dao.findallproduct();
for (Product product : list) {
	System.out.println(product.getName());
}
}

}
